import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-05-10
 * Time: 19:14
 */
public class Rectangle {
    public int len;
    public int wid;

    public int area(int a,int b){
        return a*b;
    }

    public static void main(String[] args) {

        Scanner scanner=new Scanner(System.in);
        System.out.println("分别输入长和宽：");
        Rectangle rectangle=new Rectangle();
        rectangle.len=scanner.nextInt();
        rectangle.wid=scanner.nextInt();

        System.out.println("面积为："+rectangle.area(rectangle.len,rectangle.wid));


    }
}
